﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace BattleFury.Lib.Controls
{
	public class Part
	{
		public string Name { get; set; }
		public int X { get; set; }
		public int Y { get; set; }
		public int Width { get; set; }
		public int Height { get; set; }

		[ContentSerializerIgnore]
		public Rectangle SourceBounds
		{
			get { return new Rectangle(X, Y, Width, Height); }
		}
	}
}